﻿using System.Linq;
using Core.Contract.DataContract;
using Data.DAO;
using www.Models;

namespace Data.BO
{
    public class ContactBO//:BaseBO<ContactDAO,RelaxContact>
    {
        #region value
        private readonly ContactDAO _contactDao=new ContactDAO();
        #endregion

        #region Ham Lay du lieu

        public IQueryable<RelaxContactDataContract> GetAllContactDataContracts()
        {
            return _contactDao.GeContactDataContracts();
        }
        
        #endregion

        #region ham Add
        public void Add(CONTACT contact)
        {
            _contactDao.Add(contact);
        }
       
        #endregion

        #region Ham Update

        public void Update(CONTACT contact)
        {
            _contactDao.Update(contact);
        }
        #endregion

        #region Ham Delete

        public void Delete(long  iId)
        {
            _contactDao.Delete(iId);
        }
        #endregion
    }
}
